package android.tfpedia;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;


public class ClassSelect extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.class_select);
    }
    
    public void myClickHandler(View view) {
		switch (view.getId()) {
		case R.id.imgIcon_Scout:
			((ImageView) findViewById(R.id.imgClass_Display)).setImageResource(R.drawable.scout);
			break;
		case R.id.imgIcon_Soldier:
			((ImageView) findViewById(R.id.imgClass_Display)).setImageResource(R.drawable.soldier);
			break;
		case R.id.imgIcon_Pyro:
			((ImageView) findViewById(R.id.imgClass_Display)).setImageResource(R.drawable.pyro);
			break;
		case R.id.imgIcon_Demo:
			((ImageView) findViewById(R.id.imgClass_Display)).setImageResource(R.drawable.demo);
			break;
		case R.id.imgIcon_Heavy:
			((ImageView) findViewById(R.id.imgClass_Display)).setImageResource(R.drawable.heavy);
			break;
		case R.id.imgIcon_Engineer:
			((ImageView) findViewById(R.id.imgClass_Display)).setImageResource(R.drawable.engineer);
			break;
		case R.id.imgIcon_Medic:
			((ImageView) findViewById(R.id.imgClass_Display)).setImageResource(R.drawable.medic);
			break;
		case R.id.imgIcon_Sniper:
			((ImageView) findViewById(R.id.imgClass_Display)).setImageResource(R.drawable.sniper);
			break;
		case R.id.imgIcon_Spy:
			((ImageView) findViewById(R.id.imgClass_Display)).setImageResource(R.drawable.spy);
			break;

			//Log.v("myClickHandler()", "About stuff");
			//Intent myIntent = new Intent(view.getContext(), AboutTF2.class);
			//startActivityForResult(myIntent, 0);
			//break;
		default:
			Log.v("myClickHandler()", "what did you click o_O");
		}
    }

}